#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int
main(int argc, char **argv)
{
	(void)printf("Hello");
	(void)fflush(stdout);
	sleep(1);

	(void)printf("\rAnd then");
	(void)fflush(stdout);
	sleep(1);
	putchar('\b');
	(void)fflush(stdout);
	sleep(1);

	printf("\rGoodbye for now\n");
	sleep(1);
	exit(0);
}
